package com.itheima.mapper;

import com.itheima.pojo.MemberVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface ReportMapper {
    /**
     * 会员数量统计
     * @return
     */
    @Select("select count(*) from t_member group by regTime")
    List<Integer> getMemberStatistics();

    /**
     * 查询日期
     * @return
     */
    @Select("select regTime from t_member group by regTime")
    List<LocalDate> getMemberDate();
}
